package com.qijian.business.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.business.domain.ProductionDetail;
import com.qijian.business.domain.ProductionDetailSalary;
import com.qijian.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 报工对象
 *
 * @author qijian
 * @date 2025-03-25
 */

@Data
@ToString
public class ProductionDetailVo extends ProductionDetail{
//    @Excel(name = "报工表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "报工表id")
    private Long productionDetailId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间")
    private Date checkTime;
    @Excel(name = "报工时定额")
    @ApiModelProperty(value = "报工时定额")
    private BigDecimal curWorkCost;
    @Excel(name = "班组长确认")
    @ApiModelProperty(value = "班组长确认")
    private Boolean teamLeaderCheck;
    @Excel(name = "班组长姓名")
    @ApiModelProperty(value = "班组长姓名")
    private String checkUsername;

    List<ProductionDetailVo> productionDetailVoList;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "报工表id")
    private Long itemId;

    private String itemCode;

    private String itemName;

    private String topItemName;
    private String orderNo;

//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "审核时间")
    private String workTime;
    private String dayOfWeek;
    private BigDecimal passRate;

    /**
     * 班组长确认数量
     */
    private BigDecimal checkQty;

    private BigDecimal badNumber;

    private int num;

}
